home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / sound / aiff writer sdev / componentprototypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.6 KB  |  62 lines

  1. /*
  2.     File:        ComponentPrototypes.h
  3.  
  4.     Contains:    Header for routine prototypes for sound output component.
  5.  
  6.     Written by: Mark Cookson    
  7.  
  8.     Copyright:    Copyright © 1993-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/16/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #ifndef __COMPONENTPROTOTYPES__
  25. #define __COMPONENTPROTOTYPES__
  26.  
  27. #ifndef __STRUCTURES__
  28. #include "Structures.h"
  29. #endif
  30.  
  31. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. //    Sound Component Function Prototypes
  33.  
  34. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. // component stuff
  36.  
  37. pascal ComponentResult __SoundComponentOpen(void *unused1, ComponentInstance self);
  38. pascal ComponentResult __SoundComponentClose(SoundComponentGlobalsPtr globals, ComponentInstance self);
  39. pascal ComponentResult __SoundComponentRegister(SoundComponentGlobalsPtr globals);
  40. pascal ComponentResult __SoundComponentCanDo(void *unused1, short selector);
  41.  
  42. pascal ComponentResult    __InitOutputDevice(SoundComponentGlobalsPtr globals, long actions);
  43. pascal ComponentResult    __StartSource(SoundComponentGlobalsPtr globals, short count, SoundSource *sources);
  44.  
  45. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. // info methods
  47.  
  48. pascal ComponentResult __SoundComponentGetInfo(SoundComponentGlobalsPtr globals, SoundSource sourceID, OSType selector, void *infoPtr);
  49. pascal ComponentResult __SoundComponentSetInfo(SoundComponentGlobalsPtr globals, SoundSource sourceID, OSType selector, void *infoPtr);
  50.  
  51. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. // control methods
  53.  
  54. pascal ComponentResult __SoundComponentPlaySourceBuffer(SoundComponentGlobalsPtr globals, SoundSource sourceID, SoundParamBlockPtr pb, long actions);
  55.  
  56. #if !GENERATINGPOWERPC
  57. pascal ComponentResult SoundComponentEntryPoint(ComponentParameters *params, SoundComponentGlobalsPtr globals);
  58. #else
  59. static pascal ComponentResult SoundComponentProc(ComponentParameters *params, SoundComponentGlobalsPtr globals);
  60. #endif
  61.  
  62. #endif